#include <iostream>
#include<cmath>
using namespace std;

double mymax(double a[], int n) {
	double tmp = 0;
	for (int i = 0; i < n; i++) {
		if (a[i] > tmp) {
			tmp = a[i];
		}
	}

	return tmp;
}

double mymin(double a[], int n) {
	double tmp = 9999;
	for (int i = 0; i < n; i++) {
		if (a[i] < tmp) {
			tmp = a[i];
		}
	}
	return tmp;
}

double myavg(double a[], int n) {
	double sum=0;
	for(int i=0;i<n;i++){
		sum = sum+a[i];
	}
	return sum/n;
}

double mystdev(double a[], int n,double avg){
	double sum=0;
	for(int i=0;i<n;i++){
		sum = sum+(a[i]-avg)*(a[i]-avg);
	}
	return sqrt(sum/n);
}

void statistices(double a[], int n, double *max, double *min, double *avg, double *stdev) {
	*max = mymax(a, n);
	*min = mymin(a, n);
	*avg = myavg(a, n);
	*stdev = mystdev(a,n,*avg);
}


int main() {

	double a[100];
	int n = 0;

	while (a[n - 1] != -9999) {
		cin >> a[n];
		n++;
	}
	double max, min, avg, stdev;
	statistices(a, n-1, &max, &min, &avg, &stdev);
	cout<<max<<" "<<min<<" "<<avg<<" "<<stdev;
	
	return 0;
}
